<template>
  <div>
    <basic-table
      :table-title="tableTitle"
      :data-params="dataParams"
      :data-source="dataSource"
      :multiple-table="false"
      class="mt-4"
    />
  </div>
</template>
<script>

import { getDirectors } from '@/api/project'
import BasicTable from '@/components/BasicTable/index.vue'
export default {
  name: 'BasicInfos',
  components: { BasicTable },
  props: {
    projectId: { type: String, default: '' }
  },
  data() {
    return {
      dataSource: () => getDirectors,
      dataParams: {},
      tableTitle: [
        {
          label: '企业承担角色',
          value: 'ComRole',
          show: true,
          type: 'text'
        },
        {
          label: '企业名称',
          value: 'ComName',
          show: true,
          type: 'text'
        },
        {
          label: '企业统一社会信用代码',
          value: 'ComCode',
          show: true,
          type: 'text'
        },
        {
          label: '负责人姓名',
          value: 'DirectorName',
          show: true,
          type: 'text'
        },
        {
          label: '负责人证件号',
          value: 'DirectorIdCard',
          show: true,
          type: 'text'
        }
      ]
    }
  },
  created() {
    this.dataParams.projectId = this.projectId
  }
}
</script>

<style scoped>

</style>
